libx86: Share struct cpuid_policy with userspace
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 21 Jun 2018 14:35:46 +0000 (16:35 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Jul 2018 18:31:31 +0000 (19:31 +0100)
commit4dd7e74f31facf997ffa64d1c38a1da7a707e326
treed6cb8f800f7a9787c8b929080be50806da845dca
parenteddf9559c9779e9a11e1c4db46b5ec26b3cb8709
libx86: Share struct cpuid_policy with userspace

Both Xen and the toolstack have need of the same logic when it comes to
manipulation and checking of the CPUID and MSR values offered to guests.  To
that end, libx86 is being introduced to allow Xen and the toolstack to share a
single implementation, rather than duplicating the logic.

No functional change.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
tools/include/xen-tools/libs.h
tools/xenstore/xenstored_core.h
xen/include/asm-x86/cpuid.h
xen/include/xen/lib/x86/cpuid.h